package com.qf.czh.vhr.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Position {
//    @ExcelProperty("职位编号")
    private Integer id;
    private String name;
    @JsonFormat(pattern = "yyyy-MM-dd" ,timezone = "Asia/Shanghai")
    private Date createDate;
    private Boolean enabled;

    public Position() {
    }

    public Position(Integer id, String name, Date createDate, Boolean enabled) {
        this.id = id;
        this.name = name;
        this.createDate = createDate;
        this.enabled = enabled;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Boolean getEnabled() {
        return enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }

    @Override
    public String toString() {
        return "PositionController{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", createDate=" + createDate +
                ", enabled=" + enabled +
                '}';
    }
}
